// pages/jiazhangbang/jiazhangbang.js
Page({
  data: {
    getResource:[]
  },
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: 'https://jiaoyu.mogochina.com/public/index.php/api/get_category?ident=article',
      success: function (res) {
        that.setData({
          getResource: res.data.data
        })
      }
    })
  }
})